package com.eastfair.common.res;

import lombok.Data;

import java.util.List;

/**
 * @ClassNameFinanceRes
 * @Description 财务响应结构
 * @Authoradmin
 * @Date 2023/3/21 9:03
 * @Version 1.0
 **/
@Data
public class JYFinanceRes<T> {

    /**
     * 状态
     */
    private String state;
    /**
     * 状态
     */
    private String message;
    /**
     * 状态
     */
    private String exceptionMsg;
    /**
     * 状态
     */
    private int stateCode;
    /**
     * 响应业务数据
     */
    private List<T> data;

    public Boolean isSuccess() {
        return this.stateCode ==  200;
    }

}
